package com.atguigu.ssyx.activity.service;

import com.atguigu.ssyx.model.activity.Seckill;
import com.atguigu.ssyx.vo.activity.SeckillQueryVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author Windows
* @description 针对表【seckill(秒杀活动)】的数据库操作Service
* @createDate 2023-11-16 09:43:32
*/
public interface SeckillService extends IService<Seckill> {

    /**
     * 分页查询
     * @param pageParam
     * @param seckillQueryVo
     * @return
     */
    IPage<Seckill> selectPage(Page<Seckill> pageParam, SeckillQueryVo seckillQueryVo);

    /**
     * 更新状态
     * @param id
     * @param status
     */
    void updateStatus(Long id, Integer status);
}
